﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNet.Common.NHibernateUtil;
using NHibernate;

namespace ZLCMS.Web.SystemManage.Basics.Shop.Agent
{
    public partial class AgentRelation : System.Web.UI.Page
    {
        protected IList<string> RelationCode { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            using(ISession session = SessionFactoryHelper.CreateSession())
            {
                RelationCode = session.CreateSQLQuery("select relation_code from shop_agent_rel_def order by sort").List<string>();
            }
        }
    }
}